package com.test.ll;

class TestPoint1 {
	double x,y,z;
	
	TestPoint1(double a,double b,double c){
		x = a;
		y = b;
		z = c;
	}
	void setx(double a){
		double x=a;
	}
	double getpoint(TestPoint1 p){
		return(x - p.x)*(x - p.x)+(y - p.y)*(y - p.y)+(z - p.z)*(z - p.z);
	}
	
}

public class Point1 {
	public static void main(String[] args){
		TestPoint1 p= new TestPoint1(1.0, 2.0, 3.0);
		TestPoint1 p1= new TestPoint1(0.0, 0.0, 0.0);
		System.out.println(p.getpoint(p1));
	}
}